#pragma once
#include "CInput.h"
#include "CWinForm.h"
#include "CDxDevice.h"
#include <d3d9.h>
#include <d3dx9.h>
#include <Windows.h>
#include "CTexture.h"
#include "CTimer.h"
#include "CSoundPlayer.h"
#include "CGameTime.h"
#include <tchar.h>

class CGame
{
private:
	CWinForm* m_wf;
	CDxDevice* m_dxDev;
	CInput* m_keyboard;
	CTexture* m_texture;
	RECT r_Rectangle;
	LPD3DXSPRITE m_spriteDX;
	CTimer* m_timer;
	CSoundPlayer* m_soundPlayer;
	CGameTime* m_gameTime;
	int id;
	unsigned short m_currentFrameRate;
	unsigned short m_lastFrameRate;
public:
	CGame(void);
	~CGame(void);
	void Game_Init(HINSTANCE hInst);
	void Game_Run();
	void Game_End();
	CWinForm* getWF();
	void FrameAdvanced();
	
};

